package com.yc.http.adapter;

public class Hungry {

    public class Hungry {

        private byte[] data1 = new byte[1024*1024];
        private byte[] data2 = new byte[1024*1024];
        private byte[] data3 = new byte[1024*1024];
        private byte[] data4 = new byte[1024*1024];


        //构造器私有
        //外部无法 Hungry HUNGRY =new Hungry();
        private Hungry(){
            System.out.println(Thread.currentThread().getName()+"OK");

        }

        //初始化对象
        private final static Hungry HUNGRY = new Hungry();



        //只能通过 getInstance()
        public static Hungry getInstance(){

            return HUNGRY;
        }



    }
}
